package com.health.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author sanchuan
 * @since 2023-04-19
 */
@Getter
@Setter
@TableName("t_permision")
@ApiModel(value = "TPermision对象", description = "")
public class TPermision implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("权限ID")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("权限名称")
    private String title;

    @ApiModelProperty("父权限ID")
    private Integer parentId;

    @ApiModelProperty("请求地址")
    private String linkUrl;

    @ApiModelProperty("权限路径")
    private Integer path;

    @ApiModelProperty("权限图标")
    private String icon;

    @ApiModelProperty("权限内容")
    private String perms;

    @ApiModelProperty("菜单类型（M目录 C菜单 F按钮）")
    private String menuType;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("是否删除")
    @TableLogic
    private Boolean isDeleted;
}
